package com.example.demo.bean;

import org.springframework.beans.factory.annotation.Autowired;

public class BeanA {

    private Bean2 bean2;

    //@Autowired
    public void setBean2(Bean2 bean2) {
        this.bean2 = bean2;
    }
}
